//
//  YSTNavController.m
//  YSTChatUIKit
//
//  Created by 王文文 on 2018/2/8.
//  Copyright © 2018年 王文文. All rights reserved.
//

#import "YSTNavController.h"

@interface YSTNavController ()<UINavigationControllerDelegate>

@end

@implementation YSTNavController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.delegate = self;
}

-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {

        if (self.viewControllers.count) {
            viewController.hidesBottomBarWhenPushed = YES;
        }
        
        if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)])
            self.interactivePopGestureRecognizer.enabled = NO;
        
        [super pushViewController:viewController animated:animated];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
